from vtk import vtkFloatArray


def list_to_vtk_float_array(l):
    vtk_array = vtkFloatArray()
    for value in l:
        vtk_array.InsertNextValue(value)
    return vtk_array
